﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Site.master" AutoEventWireup="true"
    CodeFile="WIN03_2E.aspx.cs" Inherits="IFRS_WIN03_2E" %>
<%@ Register TagPrefix="cc1" Namespace="vsm.CustomControl" Assembly="vsm.CustomControl" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../Content/plugins/jquery-ui/themes/base/jquery.ui.all.css" rel="stylesheet"
        type="text/css" />
    <script type="text/javascript">
        window.SetValueGLAccount = function (Value1, Value2) {
            document.getElementById("<%= hddGLAccountCode.ClientID %>").value = Value1;
            document.getElementById("<%= txtGLAccountCode.ClientID %>").value = Value1;
        }
        window.SetValueCostCenter = function (Value1, Value2) {
            document.getElementById("<%= hidCostCenter.ClientID %>").value = Value1;
            document.getElementById("<%= txtCostCenter.ClientID %>").value = Value2;
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="container-custom">
        <div class="table_master">
            <div class="colbtnConfirm">
                <asp:Button ID="btnCONFIRM" runat="server" Text="<%$Resources:ifrsButton,CONFIRM%>"
                    SkinID="NormalButton" onclick="btnCONFIRM_Click" />
            </div>
            <asp:PlaceHolder ID="form_control" runat="server">
                    <div class="table_detail">
                        <div class="rowinfo">
                            <div class="collabel_single">
                                <asp:Label ID="lblDataType" runat="server" Text="<%$Resources:ifrsField,TYPE_OF_TRANSACTION%>" />&nbsp;:&nbsp;
                            </div>
                            <div class="colinfo_single">
                                <asp:DropDownList ID="ddlDataType" runat="server" SkinID="DropDownListWithNoColor" />
                                <span class="red">*</span>
                                <asp:RequiredFieldValidator ID="reqDataType" runat="server" />
                            </div>
                        </div>
                        <div class="rowinfo">
                            <div class="collabel_single">
                                <asp:Label ID="lblTransactionDate" runat="server" Text="<%$Resources:ifrsField,DATE_TRANSACTION%>" />&nbsp;:&nbsp;
                            </div>
                            <div class="colinfo_single">
                                <asp:TextBox CssClass="datepicker" onblur="datebox_onblur( this, event );" MaxLength="10" ID="txtTransactionDate" SkinID="TextBoxWithNoColor"
                                    runat="server"></asp:TextBox>
                                <span class="red">*</span>
                                <asp:RequiredFieldValidator ID="reqTransactionDate" runat="server" />
                            </div>
                        </div>
                        <div class="rowinfo">
                            <div class="collabel_single">
                                <asp:Label ID="lblGLAccount" runat="server" Text="<%$Resources:ifrsField,GL_ACCOUNT%>"></asp:Label>&nbsp;:&nbsp;
                            </div>
                            <div class="colinfo_single">
                                <cc1:TextboxAutoComplete ID="txtGLAccountCode" MaxLength="50" runat="server" SkinID="TextBoxWithNoColor"/>&nbsp;
                                <asp:Button ID="btnGLAccountCode" runat="server" SkinID="NormalButton" Text="<%$Resources:ifrsButton,POPUP%>"
                                    CausesValidation="False" />
                                <asp:HiddenField ID="hddGLAccountCode" runat="server" />
                                <span class="red">*</span>
                                <asp:RequiredFieldValidator ID="reqGLAccount" runat="server" />
                            </div>
                        </div>
                        <div class="rowinfo">
                            <div class="collabel_single">
                                <asp:Label ID="lblCostCenter" runat="server" Text="<%$Resources:ifrsField,COST_CENTER%>" />&nbsp;:&nbsp;
                            </div>
                            <div class="colinfo_single">
                                <cc1:TextboxAutoComplete ID="txtCostCenter" MaxLength="50" runat="server" SkinID="TextBoxWithNoColor"/>&nbsp;
                                <asp:Button ID="btnCostCenter" runat="server" Text="..." CausesValidation="False" SkinID="NormalButton" />
                                <asp:HiddenField ID="hidCostCenter" runat="server"/>
                                <span class="red">*</span>
                                <asp:RequiredFieldValidator ID="reqCostCenter" runat="server" />
                            </div>
                        </div>
                        <div class="rowinfo">
                            <div class="collabel_single">
                                <asp:Label ID="lblAmount" runat="server" Text="<%$Resources:ifrsField,NO_ACCOUNT%>" />&nbsp;:&nbsp;
                            </div>
                            <div class="colinfo_single">
                                <cc1:TextboxNumber ID="txtAmount" runat="server" SkinID="TextBoxWithNoColor" AllowMaximumNumber="999999999" AllowNegativeNumber="True"
                                    DigitDecimal="2" TypeTextbox="Currency" />&nbsp;
                                <asp:Label ID="lblBAHT" runat="server" Text="<%$Resources:ifrsField,BAHT%>"></asp:Label>
                                <span class="red">*</span>
                                <asp:RequiredFieldValidator ID="reqAmount" runat="server" />
                            </div>
                        </div>
                        <div class="rowinfo">
                            <div class="collabel_single">
                                <asp:Label ID="lblSubsidyDeposit" runat="server" Text="<%$Resources:ifrsField,INTEREST_RATE_RECEIVED_PER_YEAR%>" />&nbsp;:&nbsp;
                            </div>
                            <div class="colinfo_single">
                                <cc1:TextboxNumber ID="txtSubsidyDeposit" runat="server" SkinID="TextBoxWithNoColor"
                                    AllowMaximumNumber="999999999" AllowNegativeNumber="True" DigitDecimal="2" TypeTextbox="Currency" />&nbsp;
                                <asp:Label ID="lblPERCENT" runat="server" Text="<%$Resources:ifrsField,PERCENT%>"></asp:Label>
                                <span class="red">*</span>
                                <asp:RequiredFieldValidator ID="reqSubsidyDeposit" runat="server" />
                            </div>
                        </div>
                        <div class="rowinfo">
                            <div class="collabel_single">
                                <asp:Label ID="lblStatus" runat="server" Text="<%$Resources:ifrsField,LIST_STATUS%>" />&nbsp;:&nbsp;
                            </div>
                            <div class="colinfo_single">
                                <asp:TextBox ID="txtStatus" SkinID="ReadOnlyBox" runat="server"></asp:TextBox>
                            </div>
                        </div>
                    </div>
                </asp:PlaceHolder>
            <div class="colbtn">
                <div class="center">
                    <asp:Button ID="btnSAVE" runat="server" Text="<%$Resources:ifrsButton,SAVE%>" 
                        SkinID="NormalButton" onclick="btnSAVE_Click" />&nbsp;
                    <asp:Button ID="btnCANCEL" runat="server" Text="<%$Resources:ifrsButton,CANCEL%>"
                        SkinID="NormalButton" onclick="btnCANCEL_Click" />
                </div>
            </div>
        </div>
    </div>
    <script src="../Content/js/Currency.js" type="text/javascript"></script>
    <script src="../Content/plugins/jquery-ui/ui/jquery.ui.core.js" type="text/javascript"></script>
    <script src="../Content/plugins/jquery-ui/ui/jquery.ui.widget.js" type="text/javascript"></script>
    <script src="../Content/plugins/jquery-ui/ui/jquery.ui.datepicker.js" type="text/javascript"></script>
    <script src="../Content/plugins/custom.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $(".datepicker").initDatepicker();
        });
    </script>
</asp:Content>
